package com.hellogwt.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.RootPanel;
import com.hellogwt.client.service.GreetingService;
import com.hellogwt.client.service.GreetingServiceAsync;

public class HelloGWT implements EntryPoint {

    private GreetingServiceAsync greetingService = GWT.create(GreetingService.class);
    private HandlerManager eventBus = new HandlerManager(null);

    @Override
    public void onModuleLoad() {
        GreetingsController greetingsController = new GreetingsController(greetingService, eventBus);

        greetingsController.go(RootPanel.get());
    }
}